# /usr/bin/env python3.6
# -*- encoding: utf-8 -*-
"""
@File    : movie_model.py
@Time    : 2020/2/7 0007 10:01
@Author  : zhangbing
@Email   : 18829172841@163.com
@Software: PyCharm
"""
from App.ext import db
from App.models import BaseModel


class Movie(BaseModel):
    __tablename__ = "movies"
    showname = db.Column(db.String(64))
    shownameen = db.Column(db.String(128))
    director = db.Column(db.String(64))
    leadingRole = db.Column(db.String(256))
    type = db.Column(db.String(64))
    country = db.Column(db.String(64))
    language = db.Column(db.String(64))
    duraction = db.Column(db.Integer, default=90)
    screeningmodel = db.Column(db.String(32))
    openday = db.Column(db.DateTime)
    backgroundpicture = db.Column(db.String(256))
    flag = db.Column(db.Boolean, default=False)
    is_delete = db.Column(db.Boolean, default=False)
    hall_movies = db.relationship("HallMovie", backref="Movie", lazy=True)


if __name__ == "__main__":
    pass
